<?php
/* @var $this NewsController */
/* @var $model News */

$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
 	'信息发布'=>array($this->pre_module_url.'/news/admin'),
	'商家资讯'=>array($this->pre_module_url.'/cmpNews/admin'),
);
?>

<div class="pro_filter c_f">
	<div class="filter f_l">
		<?php $form=$this->beginWidget('CActiveForm', array(
			'action'=>Yii::app()->createUrl($this->route),
			'method'=>'get',
		)); ?>
			<label class="">审核状态：</label>
			<?php echo $form->dropDownList($model,'check_type',CmpNews::model()->getCheckStatus(),array('class'=>'s_ipt w_120'))?>
			<label class="">信息标题：</label>
			<?php echo $form->textField($model,'zcn_title',array('class'=>'t_ipt w_170'))?>
			<label class="">商家名称：</label>
			<?php echo $form->textField($model,'company_name',array('class'=>'t_ipt w_170'))?>
			
			<?php echo CHtml::submitButton(Yii::t('cmp','Search'),array('class'=>'mem_bgx mem_btn01'))?>
		<?php $this->endWidget(); ?>
	</div>
</div>

<table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<th width="" class="pl15">信息标题</th>
		<th width="26%">发布者</th>
		<th width="15%">发布时间</th> 
		<th width="12%">操作</th>                                                    
	</tr>
</table>
<?php   
$this->widget('zii.widgets.CListView', array(  
    'dataProvider'=>$model->search(),  
    'itemView'=>'_view',    
    'emptyText'=>'暂时没有数据',  
    'selectAll'=>array('ids[]','id[]'),
	'itemsTagName'=>'table',
	'itemsOptions'=>array('class'=>'list_table list_table2','width'=>'100%','cellpadding'=>0,'cellspacing'=>0),  
    'artLink'=>array(  
		//审核通过
		array(Yii::t('adm','Check Pass'),$this->pre_module_url.'/cmpNews/checkpass','确认选中项目设为审核通过！'),
		//批量删除
		array(Yii::t('adm','Delete All'),$this->pre_module_url.'/cmpNews/delete','确认批量删除选中项目！'),
	)
));?> 
